package cn.falcon.fmobi.console.exception;

/**
 * @author Georgewu
 */
public class APIException extends Exception {

    private int errCode;

    public APIException() {
        super();
    }

    public APIException(int errCode, String message) {
        super(message);
        this.errCode = errCode;
    }

    public APIException(String message, Throwable cause) {
        super(message, cause);
    }

    public APIException(String message) {
        super(message);
    }

    public APIException(Throwable cause) {
        super(cause);
    }

    /**
     * @return the errCode
     */
    public int getErrCode() {
        return errCode;
    }

    /**
     * @param errCode the errCode to set
     */
    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }
}
